package com.ly.heart.domain;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ly.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 采购订单付款执行明细对象 erp_order_payment_execution_info
 *
 * @author wutao
 * @date 2024-06-23
 */
@TableName ("erp_order_payment_execution_info")
@ApiModel (value = "采购订单付款执行明细", description = "采购订单付款执行明细")
@Data
public class OrderPaymentExecutionEntity{

        /** 主键id */
        @TableId (type = IdType.INPUT)
        private String id;

        /** 采购订单id */
        @ApiModelProperty ("采购订单id")
        @TableField ("order_id")
        @Excel (name = "采购订单id")
        private String orderId;

        /** 关联单据 */
        @ApiModelProperty ("关联单据")
        @TableField ("relation_document")
        @Excel (name = "关联单据")
        private String relationDocument;

        /** 关联单据编号 */
        @ApiModelProperty ("关联单据编号")
        @TableField ("relation_document_code")
        @Excel (name = "关联单据编号")
        private String relationDocumentCode;

        /** 申请付款金额 */
        @ApiModelProperty ("申请付款金额")
        @TableField ("apply_payment_amount")
        @Excel (name = "申请付款金额")
        private String applyPaymentAmount;

        /** 付款金额 */
        @ApiModelProperty ("付款金额")
        @TableField ("payment_amount")
        @Excel (name = "付款金额")
        private String paymentAmount;

        /** 退款金额 */
        @ApiModelProperty ("退款金额")
        @TableField ("return_amount")
        @Excel (name = "退款金额")
        private String returnAmount;

        /** 录入人 */
        @ApiModelProperty ("录入人")
        @TableField ("user_id")
        @Excel (name = "录入人")
        private String userId;

        @ApiModelProperty ("创建时间")
        @JsonFormat ( pattern = "yyyy-MM-dd HH:mm:ss" )
        @TableField ("create_time")
        private Date createTime;

        /** 更新时间 */
        @ApiModelProperty ("更新时间")
        @TableField ("change_time")
        @JsonFormat ( pattern = "yyyy-MM-dd HH:mm:ss" )
        @Excel (name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
        private Date changeTime;

        @ApiModelProperty ("逻辑删除")
        @TableField ("is_used")
        @Excel (name = "逻辑删除")
        private Integer isUsed;


}
